package com.roc.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;


@Entity
@Table(name = "YJ_POS_BATCH")
public class YjPosBatch implements Serializable  {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8730883800777494118L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "posBatchSeq")
	@SequenceGenerator(name = "posBatchSeq", sequenceName = "YJ_POS_BATCH_SEQ")
	private Long  id; // id
	
	@Column(name = "BATCH_NO")
	private String  batchNo; // 批次号(日期 + _ + 随机数)
	
	@Column(name = "BEGIN_SERIAL_NUM")
	private String  beginSerialNum; // 开始sn字段
	
	@Column(name = "END_SERIAL_NUM")
	private String  endSerialNum; // 结束sn字段
	
	@Column(name = "NUMS")
	private Integer  nums; // 总数量
	
	@Column(name = "REMARK")
	private String  remark; // 备注
	
	@Column(name = "ORG_CODE")
	private String  orgCode; // 机构代码
	
	@Column(name = "OPERATOR_NO")
	private String  operatorNo; // 操作账号
	
	@Column(name = "OPERATOR_ID")
	private long  operatorId; // 操作id
	
	@Column(name = "AGENT_ID")
	private long  agentId; // 代理商id
	
	@Column(name = "DT_CREATE")
	private Date  dtCreate; // 创建时间
	
	@Column(name = "DT_LASTMOD")
	private Date  dtLastmod; // 更新时间
	
	@Column(name = "POS_BRAND")
	private String  posBrand; // 品牌

	@Transient
	private String agentName;
	
	@Transient
	private String orgName;

	@Transient
	private String  dtCreateStr; // 创建时间

	@Transient
	private String  dtLastmodStr; // 更新时间

	@Transient
	private String  posType; // 机型

	@Transient
	private String  posName; // 名称
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}

	public String getBeginSerialNum() {
		return beginSerialNum;
	}

	public void setBeginSerialNum(String beginSerialNum) {
		this.beginSerialNum = beginSerialNum;
	}

	public String getEndSerialNum() {
		return endSerialNum;
	}

	public void setEndSerialNum(String endSerialNum) {
		this.endSerialNum = endSerialNum;
	}

	public Integer getNums() {
		return nums;
	}

	public void setNums(Integer nums) {
		this.nums = nums;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public String getOperatorNo() {
		return operatorNo;
	}

	public void setOperatorNo(String operatorNo) {
		this.operatorNo = operatorNo;
	}

	public long getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(long operatorId) {
		this.operatorId = operatorId;
	}

	public long getAgentId() {
		return agentId;
	}

	public void setAgentId(long agentId) {
		this.agentId = agentId;
	}

	public Date getDtCreate() {
		return dtCreate;
	}

	public void setDtCreate(Date dtCreate) {
		this.dtCreate = dtCreate;
	}

	public Date getDtLastmod() {
		return dtLastmod;
	}

	public void setDtLastmod(Date dtLastmod) {
		this.dtLastmod = dtLastmod;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getPosBrand() {
		return posBrand;
	}

	public void setPosBrand(String posBrand) {
		this.posBrand = posBrand;
	}

	public String getDtCreateStr() {
		return dtCreateStr;
	}

	public void setDtCreateStr(String dtCreateStr) {
		this.dtCreateStr = dtCreateStr;
	}

	public String getDtLastmodStr() {
		return dtLastmodStr;
	}

	public void setDtLastmodStr(String dtLastmodStr) {
		this.dtLastmodStr = dtLastmodStr;
	}

	public String getPosType() {
		return posType;
	}

	public void setPosType(String posType) {
		this.posType = posType;
	}

	public String getPosName() {
		return posName;
	}

	public void setPosName(String posName) {
		this.posName = posName;
	}

}
